package pub.cleangao.memm.annotation;


import org.springframework.stereotype.Component;
import java.lang.annotation.*;


/**
 * RPC服务类
 *
 * <p>实现对外api接口</p>
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
@Component
public @interface RpcService {

    /**
     * Service version, default value is empty string
     */
    String version() default "";

    /**
     * Service group, default value is empty string
     */
    String group() default "";

    /**
     * 降级类; 使用同名方法降级
     */
    Class<?> fallback() default Object.class;

}
